package com.itheima.service.Impl;

import com.itheima.dao.AccountDao;
import com.itheima.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AccountServiceImpl implements AccountService {
    @Autowired
    private AccountDao accountDao;


    public void transfer(String name1, String name2, double money) {
        accountDao.outmoney(money,name1);
        accountDao.inmoney(money,name2);
    }
}
